
cc = g++
ReleaseFlags = -O2 # -pedantic 
DebugFlags = -g -O0
BoostPath = C:/boost_1_44_0
BoostLib = $(BoostPath)/stage/lib
Include = -I ../source -I $(BoostPath)
DebugLib = 
DebugLib += $(BoostLib)/libboost_date_time-mgw45-sd-1_44.a
DebugLib += $(BoostLib)/libboost_thread-mgw45-mt-sd-1_44.a
DebugLib += $(BoostLib)/libboost_thread-mgw45-mt-1_44.a
#DebugLib += $(BoostLib)/libboost_thread-mgw45-mt-d-1_44.a
ReleaseLib  =  $(BoostLib)/libboost_date_time-mgw45-s-1_44.a
ReleaseLib  += $(BoostLib)/libboost_thread-mgw45-mt-s-1_44.a
Souce = ../source/*.hpp ../tests/*.cpp

all: 
	$(cc) $(Include) $(DebugFlags)   $(DebugLib)   ../tests/ListenerTests.cpp -o Debug/ListenerTests.exe
	$(cc) $(Include) $(DebugFlags)   $(DebugLib)   ../tests/MicroThreadTests.cpp -o Debug/MicroThreadTests.exe
	$(cc) $(Include) $(ReleaseFlags) $(ReleaseLib) ../tests/MicroThreadTests.cpp -o Release/MicroThreadTests.exe

ignore:
	$(cc) $(Include) $(ReleaseFlags) $(ReleaseLib) ../tests/ListenerTests.cpp -o Release/ListenerTests.exe
	./Debug/ListenerTests.exe
	./Release/ListenerTests.exe
	./Debug/MicroThreadTests.exe
	./Release/MicroThreadTests.exe
